Microsoft Great Plains SQL Scripting - repairing lot numbers - Alba Spectrum Houston

Released on = April 18, 2007, 3:50 pm

Press Release Author = Alba Spectrum Group

Industry = Computers

Press Release Summary = Microsoft Dynamics GP has pretty robust inventory control
and purchasing modules. When you track your inventory items by lot numbers, you may
come to the situation, when lot numbering becomes inconsistent due to either power
failure during posting or if you use third party custom modules, participating in
lot tracked transactions

Press Release Body = Alba Spectrum Group, http://www.albaspectrum.com
help@albaspectrum.com 1-866-528-0577, 1-630-961-5918

Microsoft Dynamics GP has pretty robust inventory control and purchasing modules.
When you track your inventory items by lot numbers, you may come to the situation,
when lot numbering becomes inconsistent due to either power failure during posting
or if you use third party custom modules, participating in lot tracked transactions.
Below we would like to give you brief excurse to lot number tracking and provide
fixing scripts:
. Item Lot Number Master table, IV00300. This table gets record when lot is
received at the specific date, please familiarize yourself with its primary key to
get an idea. Now we should come to the complication of GP business logic, related
to the fact, that lot number tracking is optional. This is why lot numbers refer to
general table: Inventory Purchase Receipt Work - this table participate in regular
logic, when we don't use lot numbering
. Inventory Purchase Receipt Work, IV10200. This table gets record when items
arrive to GP via Purchase Receipts, Inventory Adjustments or Inventory transfers (in
this case items are simply moved from one IV site to another)

We provide you fixing scripts, however you should analyze and try them first in test
environment, as your specific case is now known to us and you should be responsible
for SQL data repair.
Below please see script repairing missing IV00300 when IV10200 record is present:

insert into IV00300
(
ITEMNMBR,
LOCNCODE,
DATERECD,
DTSEQNUM ,
LOTNUMBR,
QTYRECVD ,
QTYSOLD ,
ATYALLOC,
UNITCOST ,
RCTSEQNM,
VNDRNMBR,
LTNUMSLD,
QTYTYP ,
BIN,
MFGDATE,
EXPNDATE
)
select
a.ITEMNMBR,
a.TRXLOCTN,
a.DATERECD,
1,
e.SERLTNUM,
a.QTYRECVD,
0,
0,
a.UNITCOST,
a.RCTSEQNM,
\'\',--VNDRNMBR
0,
a.QTYTYPE,
\'\',
\'01/01/1900\',
\'01/01/1900\'

from IV10200 a
join IV30200 b on b.DOCNUMBR

Web Site = http://www.albaspectrum.com

Contact Details = Andrew Karasev, Alba Spectrum Group, http://www.albaspectrum.com
help@albaspectrum.com 1-866-528-0577, 1-630-961-5918, serving GP client in USA
nationwide and Canada. Local service is available in Chicago area: Naperville,
Warrenville, Oakbrook, Lisle, Downers Grove, Romeoville, Aurora, Hinsdale, Joliet,
Plainfield, Morris, Orland Park, Lombard, Elgin, Crystal Lake, in Houston: Richmond,
Sugar Land, Rosenberg, Katy, Galveston. Nationwide service: California, New York,
Ontario, Quebec, Florida, Arizona, Iowa, Indiana, Kansas, Wisconsin, Minnesota,
Washington, Nevada, Utah, Louisiana, Texas, Illinois

  • Printer Friendly Format
  • Back to previous page...
  • Back to home page...
  • Submit your press releases...
  •